package tedu.study.ooday07;

public class NstInnerClassDemo {
    public static void main(String[] args) {
        int num = 66;

        //1)创建一个Aoo的派生类,但是没有名字
        //2)创建一个匿名派生类的实例o1
        //3)大括号中为派生类的类体
        Aoo o1 = new Aoo() {};

        Boo o2 =new Boo() {
            void show() {
                int n = num;
                //num = 88;
                System.out.println("Boo--show");
                System.out.println(n);
            }
        };
        o2.show();

    }
}

abstract class Boo{
    abstract void show();
}

abstract class Aoo{

}
